Release 10.1A: OpenEdge Development:
Progress 4GL Reference


PAGE-NUMBER function

Returns the page number of the output destination. If the output stream is not paged, PAGE-NUMBER returns a value of 0.

Syntax

PAGE-NUMBER [ ( stream ) ] 

stream

The name of an output stream. If you do not name a stream, PAGE-NUMBER returns the page number of the default unnamed output stream.

Example

This procedure creates a customer report with a page number on each page:

r-pgnbr.p
OUTPUT TO pagenum.txt PAGED.
FOR EACH customer:
  FORM HEADER "Customer report" AT 30
    "Page:" AT 60 PAGE-NUMBER FORMAT ">>9" SKIP(1).
  DISPLAY cust-num name address city state country.
END. 

See also

OUTPUT TO statement, PAGE statement


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095